package usw.webserver.util;

import org.apache.commons.lang3.StringUtils;

public final class StringUtil {

	/**
	 * 
	 * @param str
	 * @return
	 */
	public static boolean	isEmpty(String str)
	{
		if	(str != null)
		{
			str = str.trim();
		}
		
		return	StringUtils.isEmpty(str);
	}
	
	/**
	 * 
	 * @param str
	 * @return
	 */
	public static boolean isNotEmpty(String str)
	{
		return	!isEmpty(str);
	}
	
	/**
	 * 
	 * @param inputStr
	 * @param splitStr
	 * @return
	 */
	public static String[] splitString(String inputStr, String splitStr)
	{
		return	StringUtils.split(inputStr, splitStr);
	}
}
